package org.example.zuoye.service;

import com.github.pagehelper.PageInfo;
import org.example.zuoye.entity.Patient;

/**
 * @Author xinchen
 * @Date: 2024/08/13/ 11:45
 * @Description
 */
public interface PatientService {
    /**
     * 搜索
     * @return
     */
    PageInfo search(Integer page, Integer limit, Patient patient);

    /**
     * 添加
     * @param patient
     */
    int add(Patient patient) throws Exception;

    /**
     *  修改
     * @param patient
     */
    int edit(Patient patient) throws Exception;

    /**
     *
     * @param ids
     */
    int remove(Integer[] ids) throws Exception;

    // int editByMoney(Integer money, Integer id);

    int editByMoney(Patient patient);

    Patient findByPhone(String phone);
}
